<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>猫狗日记</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="../static/css/layui.css" rel="stylesheet">
  <link rel="shortcut icon" href="../static/images/favicon.png">
  <style>
    .list-img {
      display: inline-block;
      vertical-align: middle;
      width: 100%;
    }
  </style>
</head>

<body>
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo layui-hide-xs layui-bg-black">logo 区域</div>
      <!-- 头部区域（可配合layui 已有的水平导航） -->
      <ul class="layui-nav layui-layout-left">
        <!-- 移动端显示 -->
        <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
          <i class="layui-icon layui-icon-spread-left"></i>
        </li>
        <li class="layui-nav-item layui-hide-xs"><a href="../index.html">首页</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../about-pet.html">关于宠物</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../pet-cats-dogs.html">宠物猫狗</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../pet-news.html">宠物新闻</a></li>
        <li class="layui-nav-item layui-hide-xs layui-this"><a href="javascript:;">宠物购买</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../pet-snacks.html">宠物零食</a></li>
      </ul>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
          <a href="javascript:;">
            <img src="../static/images/user/avatar.jpeg" class="layui-nav-img">
            纳美
          </a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">个人信息</a></dd>
            <dd><a href="javascript:;">退出</a></dd>
          </dl>
        </li>
      </ul>
    </div>

    <div class="layui-body" style="left: 0;">
      <div class="layui-container">

        <!-- 宠物搜索框 -->
        <div class="layui-row">
          <div class="layui-col-md8 layui-col-md-offset2">
            <div class="layui-input-group" style="width: 100%; height: 50px; margin-top: 30px;">
              <input type="text" placeholder="你喜欢的宠物" class="layui-input"
                style="height: 50px; border-radius:25px 0 0 25px; padding-left: 25px;">
              <div class="layui-input-split layui-input-suffix"
                style="background-color: #a233c6; width: 70px; cursor:pointer; border-top-right-radius: 25px; border-bottom-right-radius: 25px; border-bottom-right-radius: 25px;">
                <i class="layui-icon layui-icon-search" style="color: #fff;"></i>
              </div>
            </div>
            <!-- 宠物热搜词 -->
            <ul style="display: flex; padding-left: 20px; margin-top: 4px;">
              <li class="layui-font-gray" style="padding: 0 5px; cursor: pointer;">英短</li>
              <li class="layui-font-gray" style="padding: 0 5px; cursor: pointer;">哈士奇</li>
              <li class="layui-font-gray" style="padding: 0 5px; cursor: pointer;">柯基</li>
              <li class="layui-font-gray" style="padding: 0 5px; cursor: pointer;">柴犬</li>
            </ul>
          </div>
        </div>

        <!-- 宠物展示 -->
        <div class="layui-row layui-col-space25" style="margin-top: 30px;">

          <div class="layui-col-md3 ">
            <div class="layui-card">
              <img src="../static/images/but-pet/京巴.webp" class="list-img">
            </div>
            <div style="text-align: center; padding: 12px 0;">
              京巴
            </div>
            <div>
              <div class="layui-row">
                <div class="layui-col-md4 layui-col-md-offset4 layui-font-red layui-font-22"
                  style="text-align: center;">
                  ￥1399.00
                </div>
                <div class="layui-col-md4 layui-font-gray layui-font-12 " style="text-decoration-line: line-through;">
                  1500
                </div>
              </div>
            </div>
          </div>

          <div class="layui-col-md3 ">
            <div class="layui-card">
              <img src="../static/images/but-pet/查理王.webp" class="list-img">
            </div>
            <div style="text-align: center; padding: 12px 0;">
              查理王
            </div>
            <div>
              <div class="layui-row">
                <div class="layui-col-md4 layui-col-md-offset4 layui-font-red layui-font-22"
                  style="text-align: center;">
                  ￥3690.00
                </div>
                <div class="layui-col-md4 layui-font-gray layui-font-12 " style="text-decoration-line: line-through;">

                </div>
              </div>
            </div>
          </div>
          <div class="layui-col-md3 ">
            <div class="layui-card">
              <img src="../static/images/but-pet/柯基.webp" class="list-img">
            </div>
            <div style="text-align: center; padding: 12px 0;">
              柯基
            </div>
            <div>
              <div class="layui-row">
                <div class="layui-col-md4 layui-col-md-offset4 layui-font-red layui-font-22"
                  style="text-align: center;">
                  ￥899.00
                </div>
                <div class="layui-col-md4 layui-font-gray layui-font-12 " style="text-decoration-line: line-through;">
                  980
                </div>
              </div>
            </div>
          </div>
          <div class="layui-col-md3 ">
            <div class="layui-card">
              <img src="../static/images/but-pet/柴犬.webp" class="list-img">
            </div>
            <div style="text-align: center; padding: 12px 0;">
              柴犬
            </div>
            <div>
              <div class="layui-row">
                <div class="layui-col-md4 layui-col-md-offset4 layui-font-red layui-font-22"
                  style="text-align: center;">
                  ￥1566.00
                </div>
                <div class="layui-col-md4 layui-font-gray layui-font-12 " style="text-decoration-line: line-through;">
                  1630
                </div>
              </div>
            </div>
          </div>
          <div class="layui-col-md3 ">
            <a href="./buy-detail.html">
              <div class="layui-card">
                <img src="../static/images/but-pet/布偶猫.webp" class="list-img" href="">
              </div>
              <div style="text-align: center; padding: 12px 0;">
                布偶猫
              </div>
              <div>
                <div class="layui-row">
                  <div class="layui-col-md4 layui-col-md-offset4 layui-font-red layui-font-22"
                    style="text-align: center;">
                    ￥1280.00
                  </div>
                  <div class="layui-col-md4 layui-font-gray layui-font-12 " style="text-decoration-line: line-through;">

                  </div>
                </div>
              </div>
            </a>
          </div>
          <div class="layui-col-md3 ">
            <div class="layui-card">
              <img src="../static/images/but-pet/折耳猫.webp" class="list-img">
            </div>
            <div style="text-align: center; padding: 12px 0;">
              折耳猫
            </div>
            <div>
              <div class="layui-row">
                <div class="layui-col-md4 layui-col-md-offset4 layui-font-red layui-font-22"
                  style="text-align: center;">
                  ￥1269.00
                </div>
                <div class="layui-col-md4 layui-font-gray layui-font-12 " style="text-decoration-line: line-through;">
                  1588
                </div>
              </div>
            </div>
          </div>
          <div class="layui-col-md3 ">
            <div class="layui-card">
              <img src="../static/images/but-pet/英短蓝猫.webp" class="list-img">
            </div>
            <div style="text-align: center; padding: 12px 0;">
              英短蓝猫
            </div>
            <div>
              <div class="layui-row">
                <div class="layui-col-md4 layui-col-md-offset4 layui-font-red layui-font-22"
                  style="text-align: center;">
                  ￥1180.00
                </div>
                <div class="layui-col-md4 layui-font-gray layui-font-12 " style="text-decoration-line: line-through;">

                </div>
              </div>
            </div>
          </div>
          <div class="layui-col-md3 ">
            <div class="layui-card">
              <img src="../static/images/but-pet/缅因猫.webp" class="list-img">
            </div>
            <div style="text-align: center; padding: 12px 0;">
              缅因猫
            </div>
            <div>
              <div class="layui-row">
                <div class="layui-col-md4 layui-col-md-offset4 layui-font-red layui-font-22"
                  style="text-align: center;">
                  ￥2380.00
                </div>
                <div class="layui-col-md4 layui-font-gray layui-font-12 " style="text-decoration-line: line-through;">

                </div>
              </div>
            </div>
          </div>

        </div>
        <div id="pagenation" style="float: right;"></div>

      </div>

      <div style="text-align: center; padding: 20px; margin-top: 60px;" class="layui-font-gray">
        cat and dog dairy &copy; 2024 created by Wzy
      </div>
    </div>

  </div>


  <script src="../static/layui.js"></script>
  <script>
    // 分页器
    layui.use(["laypage"], function () {
      var laypage = layui.laypage;
      // 自定义每页条数的选择项
      laypage.render({
        elem: 'pagenation',
        count: 54,
        limit: 10,
        limits: [10, 50, 100],
        layout: ['prev', 'page', 'next', 'limit']
      });
    });
    //侧边固定栏
    layui.use(function () {
      var util = layui.util;
      // 自定义固定条
      util.fixbar({
        bars: [
          {
            // 定义可显示的 bar 列表信息 -- v2.8.0 新增
            type: "share",
            icon: "layui-icon-share",
            style: "background-color: #16b777;",
            content: "分享",
          },
          {
            type: "help",
            icon: "layui-icon-help",
            content: "帮助",
          },
          {
            type: "cart",
            icon: "layui-icon-cart",
            style: "background-color: #FF5722;",
            content: "购物车",
          },
        ],
        on: {
          mouseenter: function (type) {
            const typesMap = {
              share: "分享给朋友",
              help: "帮助",
              cart: "购物车",
            }
            layer.tips(typesMap[type], this, {
              tips: 4,
              fixed: true,
            });
          },
          mouseleave: function (type) {
            layer.closeAll("tips");
          },
        },
        // 点击事件
        click: function (type) {
          console.log(this, type);
          // layer.msg(type);
        },
      });
    });

  </script>
</body>

</html>